package edu.unf.cen6940.web;

import org.junit.Test;

import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;

import org.springframework.context.ApplicationContext;

import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;

import org.springframework.test.context.ContextConfiguration;

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.context.request.SessionScope;

/**
 * Unit test for the <code>FacultyresearchController</code> controller.
 *
 * @see edu.unf.cen6940.web.FacultyresearchController
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
		"file:./resources/rms_test-security-context.xml",
		"file:./resources/rms_test-service-context.xml",
		"file:./resources/rms_test-dao-context.xml",
		"file:./resources/rms_test-web-context.xml" })
public class FacultyresearchControllerTest {
	/**
	 * The Spring application context.
	 *
	 */
	private ApplicationContext context;

	/**
	 * Test <code>editFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchResearchkeywords()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchResearchkeywords() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchResearchkeywords");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchCategories()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchCategories() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchCategories");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchFacultyresearchtostudents()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchFacultyresearchtostudents() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchFacultyresearchtostudents");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>indexFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetindexFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/indexFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>facultyresearchControllerbinaryaction()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetfacultyresearchControllerbinaryaction() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/facultyresearchController/binary.action");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchController controller = (FacultyresearchController) context.getBean("FacultyresearchController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Autowired to set the Spring application context.
	 *
	 */
	@Autowired
	public void setContext(ApplicationContext context) {
		this.context = context;
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope());
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new RequestScope());
	}

	/**
	 * Returns a mock HttpServletRequest object.
	 *
	 */
	private MockHttpServletRequest getMockHttpServletRequest() {
		MockHttpServletRequest request = new MockHttpServletRequest();
		ServletRequestAttributes attributes = new ServletRequestAttributes(request);
		RequestContextHolder.setRequestAttributes(attributes);
		return request;
	}

	/**
	 * Returns a mock HttpServletResponse object.
	 *
	 */
	private MockHttpServletResponse getMockHttpServletResponse() {
		return new MockHttpServletResponse();
	}
}